package com.way.api.system;

import com.way.api.system.fallback.RemoteUserFallback;
import com.way.domain.system.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "way-system", fallbackFactory = RemoteUserFallback.class)
public interface RemoteUserService {

    @GetMapping("/user/{loginName}")
    SysUser getUser(@PathVariable("loginName") String loginName);
}
